import request from '@/utils/request'

// 管理列表
export const getManage = function(params) {
  return request({
    url: '/api/vm-service/sku/search',
    method: 'GET',
    params
  })
}

// 新增列表
export const addManage = function(data) {
  return request({
    url: '/api/vm-service/sku',
    method: 'POST',
    data
  })
}

// 修改列表
export const editManage = function(data) {
  return request({
    url: '/api/vm-service/sku/' + data.skuId,
    method: 'PUT',
    data
  })
}

// 上传图片
export const uploadImg = function(data) {
  return request({
    url: '/api/vm-service/sku/fileUpload',
    method: 'POST',
    data
  })
}

// 数据导入
export const dataImport = function(data) {
  return request({
    url: '/api/vm-service/sku/upload',
    method: 'POST',
    data
  })
}
